Notes: Unlike MasterMind, PFB does not allow duplicate digits. Although I had played versions of PFB where "Pico" and "Fermi" were reversed, the kids convinced me it was easier to remember "Fermi" by "firm".
=====
Additional Information
--------------------
PFB is similar in concept and strategy to MasterMind and Jotto. After I first saw "Pico Fermi Bagels" (PFB) as a Basic program at the Lawrence Hall of Science in Berkeley in the early '70s, I wrote several Logo versions.
Uncheck "Allow Zero" to omit zero as a possible digit.
Select "Digits" to change the number of digits (between 2-5).
Selecting either of these after you have made your first guess will start a New Game.
Your last settings of these should reappear the next time you start PFB.
The guess fields expect numbers, but will ignore spaces and periods. PFB will complain about non-digits (or zero if "Allow Zero" is unchecked), the wrong number of digits, or duplicate digits.
Order of guesses doesn't matter; guesses can be recycled (may be necessary since there are only 16 guess fields).
To balance readability and amount of information displayed, guess field changes font size:
• userFont12 (Digits=2,3)
• userFont10 (Digits=4)
• userFont9 (Digits=5) [long line may still not quite be all visible]
Winning is indicated by "Fermi" for all digits, and an audible sound.
=====
Possible Next Steps
------------------
This is my first Newton program, so suggestions and comments are appreciated.
Some things I've thought about doing (or tried):
• add application icon (not documented how to do this)
• allow more guesses (I'll have to figure out scrolling) [guesses can be recycled though]
• provide feedback via the label (rather than append to guess) (I tried setLabelCommand, but couldn't get it to work)
• autoexpanding the next guess field (expandLine sort of does this, but doesn't refresh properly)